package com.gitee.feizns.itrip.personal.trade.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author feizns
 * @since 2019/1/14 0014
 */
public interface TradeHotelTempStoreMapper {

    /**
     * 扣除在指定区间内的库存
     * @param roomId
     * @param startDate
     * @param endDate
     * @return
     */
    int reduceInventory(@Param("roomId") Long roomId,
                        @Param("startDate") Date startDate,
                        @Param("endDate") Date endDate,
                        @Param("count") Integer count);

}

